import config from "@/config"
import http from "@/utils/request"

export default {
    page: {
        url: `${config.API_URL}/biz/merchant/page`,
        name: "商户分页查询",
        get: async function(params){
            return await http.get(this.url, params);
        }
    },
    detail: {
        url: `${config.API_URL}/biz/merchant/detail`,
        name: "查询商户详情",
        get: async function(params){
            return await http.get(this.url, params);
        }
    },
    save: {
        url: `${config.API_URL}/biz/merchant/saveOrUpdate`,
        name: "保存|修改商户信息",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    deletes: {
        url: `${config.API_URL}/biz/merchant/deletes`,
        name: "批量删除角色",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    },
    updateStatus: {
        url: `${config.API_URL}/biz/merchant/updateStatus`,
        name: "修改商户状态",
        post: async function(data={}){
            return await http.post(this.url, data);
        }
    }
}